import { createRouter, createWebHistory } from "vue-router";
import colin from "./team/colin";
import csj from "@/router/csj/chen"
const routes = [

  {
    path: "/",
    name: "home",
    component: () => import("@/views/HomeView.vue"),
    children: [
      {
        path: "",
        name: "首页",
        component: () => import("@/views/lyf/HomePageView"),
      },
      {
        path: "community",
        name: "社区",
        component: () => import("@/views/chen/community.vue"),
      },
      {
        path: "user",
        name: "我的",
        component: () => import("@/views/colin/UserView.vue"),
      },
    ],
  },
  {
    path: "/travel",
    name: "旅拍",
    component: () => import("@/views/Travel/TravelView.vue"),
  },
  {
    path: "/game",
    name: "迎亲游戏",
    component: () => import("@/views/Travel/GameView.vue"),
  },
  {
    path: "/photo",
    name: "拍婚纱",
    component: () => import("@/views/Prephoto/PhotoView"),
  },
  {
    path: "/serve",
    name: "找婚庆",
    component: () => import("@/views/Prephoto/ServeView"),
  },
  {
    path: "/vajra",
    name: "四大金刚",
    component: () => import("@/views/chen/vajra"),
  },
  {
    path: "/wedding",
    name: "订喜宴",
    component: () => import("@/views/lyf/WeddingBanquetView"),
  },
  /* 登录相关！！！！！！！！！！ */
  {
    path: '/onelogin',
    name: '一键登录',
    component: () => import("@/views/Prephoto/login/oneloginView"),
  },
  {
    path: "/phonelogin",
    name: "手机号登录",
    component: () => import("@/views/Prephoto/login/phoneView"),
  },
  {
    path: "/register",
    name: "注册",
    component: () => import("@/views/Prephoto/login/registerView"),
  },
  {
    path: "/code",
    name: "验证码",
    component: () => import("@/views/Prephoto/login/codeView"),
  },
  {
    path: "/setword",
    name: "设置密码",
    component: () => import("@/views/Prephoto/login/setwordView"),
  },
  {
    path: "/setnew",
    name: "设置新密码",
    component: () => import("@/views/Prephoto/login/setnewView"),
  },
  {
    path: "/tags",
    name: "个性标签",
    component: () => import("@/views/Prephoto/login/tagsView"),
  },
  /* 登录相关！！！！！！！！！！ */
  {
    path: "/people",
    name: "新人大比拼",
    component: () => import("@/views/chen/people")
  },
  ...colin,
  ...csj,
  // 测试区域


];

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes,
});

export default router;
